import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { Skill } from "../../battle/skill/Skill";

/** 角色技能信息 */
@ecs.register('RoleModelSkill')
export class RoleModelSkillComp extends ecs.Comp {
    /** 普通攻击 */
    normal: Skill = null!;
    /** 能量技能 */
    power: Skill = null!;
    /** 当前正在释放的技能 */
    currentSkill: Skill = null!;
    /** 已装备的被动技能 */
    passives: Skill[] = [];
    /** 已装备的器技能 */
    qiMap: Map<number, Skill> = new Map();
    /** 觉醒能量技能 */
    powerAwake: Skill = null!;
    /** 已装备的觉醒被动技能 */
    passivesAwake: Skill[] = [];


    reset() {
        this.normal = null!;
        this.power = null!;
        this.passives.splice(0, this.passives.length);
        this.qiMap.clear();
    }
}